/*
 * PhysicalBO.java
 *
 * Created on March 28, 2007, 8:07 PM
 *
 */

package edu.byu.isys413.mystuff.sales;

/**
 * Create a new instance of a physical productBO that extends product
 * @author Gabe
 */
public abstract class PhysicalBO extends ProductBO{
    private String serialNumber;
    private String ProductID;
    private String shelfLoc;
    private String storeID;
    private String datePurchased;
    private String saleOrRent;
    private ConceptualBO conceptualBO;
    private boolean dirty = false;   
    private boolean alreadyInDatabase = false;

    /**
     * Get the serial number from the physical product
     */
    public String getSerialNumber() {
        return serialNumber;
    }

    /**
     * Set the serial number inside the physical productBO
     */
    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    /**
     * Get the shelf location of the phyiscal product
     */
    public String getShelfLoc() {
        return shelfLoc;
    }

    /**
     * Set the shelf location of the physical product
     */
    public void setShelfLoc(String shelfLoc) {
        this.shelfLoc = shelfLoc;
    }

    /**
     * Get the date purchased of the physical product
     */
    public String getDatePurchased() {
        return datePurchased;
    }

    /**
     * Set the date purchased of the physical product
     */
    public void setDatePurchased(String datePurchased) {
        this.datePurchased = datePurchased;
    }

    /**
     * Get whether the physical product is a rental or a sale
     */
    public String getSaleOrRent() {
        return saleOrRent;
    }

    /**
     * Set whether the physical product is a rental or sale inside the physicalBO
     */
    public void setSaleOrRent(String saleOrRent) {
        this.saleOrRent = saleOrRent;
    }

   /**
     * Returns isDirty if information has been changed
     */
    public boolean isDirty() {
        return dirty;
    }

    /**
     * Set the variable isDirty to show that intformation in the productBO has been changed in the DB
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    /**
     * Sends a return object if the information is already stored in the DB
     */
    public boolean isAlreadyInDatabase() {
        return alreadyInDatabase;
    }

    /**
     * Set this variable to show that information in this object has already been saved to the DB
     */
    public void setAlreadyInDatabase(boolean alreadyInDatabase) {
        this.alreadyInDatabase = alreadyInDatabase;
    }

    public String getProductID() {
        return ProductID;
    }

    public void setProductID(String ProductID) {
        this.ProductID = ProductID;
    }

    public ConceptualBO getConceptualBO() {
        return conceptualBO;
    }

    public void setConceptualBO(ConceptualBO conceptualBO) {
        this.conceptualBO = conceptualBO;
    }

    public String getStoreID() {
        return storeID;
    }

    public void setStoreID(String storeID) {
        this.storeID = storeID;
    }

   }//end PhysicalBO